/*============================================================================
 * Copyright 2009 VMware Inc.
 * Licensed under the Apache License, Version 2.0 (the "License"); you may not 
 * use this file except in compliance with the License. You may obtain a copy 
 * of the License at: http://www.apache.org/licenses/LICENSE-2.0
 * 
 * Unless required by applicable law or agreed to in writing, software 
 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT 
 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the 
 * License for the specific language governing permissions and limitations 
 * under the License.
 ============================================================================*/

package com.vmware.vcloud;

import java.net.MalformedURLException;
import java.util.List;

import com.vmware.vcloud.data.IpAddressingMode;
import com.vmware.vcloud.rest.RestClient;

/**
 * @author Steve Jin (sjin@vmware.com)
 */

public class Network extends VCloudObject
{

	List<String> dns;
	String gateway;
	IpAddressingMode ipAddressingMode;
	String netmask;
	String dnsSuffix;
	
	public Network(RestClient rc, String urlPath) throws MalformedURLException
	{
		super(rc, urlPath);
	}
	
	public Network(RestClient rc, String urlPath, String name) throws MalformedURLException
	{
		super(rc, urlPath, name);
	}
	
	protected void parse()
	{
		//TODO
	}
	
	public List<String> getDns() 
	{
		return dns;
	}

	public void setDns(List<String> dns) 
	{
		this.dns = dns;
	}

	public String getGateway() 
	{
		return gateway;
	}

	public void setGateway(String gateway) 
	{
		this.gateway = gateway;
	}

	public IpAddressingMode getIpAddressingMode() 
	{
		return ipAddressingMode;
	}

	public void setIpAddressingMode(IpAddressingMode ipAddressingMode) 
	{
		this.ipAddressingMode = ipAddressingMode;
	}

	public String getNetmask() 
	{
		return netmask;
	}

	public void setNetmask(String netmask) 
	{
		this.netmask = netmask;
	}

	public String getDnsSuffix() {
		return dnsSuffix;
	}

	public void setDnsSuffix(String dnsSuffix) 
	{
		this.dnsSuffix = dnsSuffix;
	}
}
